@extends('layouts.app')

@section('style')

    <link rel="stylesheet" href="/plugins/datatables/dataTables.bootstrap.css">

@endsection

@section('content')

    <div class="content-wrapper">
        <section class="content-header">
            <h1>
                剧本管理
                <small>剧本列表</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 管理后台</a></li>
                <li><a href="#">剧本管理</a></li>
                <li class="active">剧本列表</li>
            </ol>
        </section>

        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">剧本列表</h3>
                        </div>
                        <div class="box-body">
                            <table id="play-list" class="table table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th width="5%">ID</th>
                                    <th width="10%">用户名</th>
                                    <th width="10%">分类</th>
                                    <th>标题</th>
                                    <th width="10%">是否设置为模板</th>
                                    <th width="10%">查看次数</th>
                                    <th width="10%">创建时间</th>
                                    <th width="10%">更新时间</th>
                                    <th width="5%">操作</th>
                                </tr>
                                </thead>
                                <tbody></tbody>
                                <tfoot>
                                <tr>
                                    <th width="5%">ID</th>
                                    <th width="10%">用户名</th>
                                    <th width="10%">分类</th>
                                    <th>标题</th>
                                    <th width="10%">是否设置为模板</th>
                                    <th width="10%">查看次数</th>
                                    <th width="10%">创建时间</th>
                                    <th width="10%">更新时间</th>
                                    <th width="5%">操作</th>
                                </tr>
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>

@endsection

@section('javascript')

    <script src="{{ asset('/plugins/jQuery/jquery-2.2.3.min.js') }}"></script>
    <script src="{{ asset('/bootstrap/js/bootstrap.min.js') }}"></script>
    <script src="{{ asset('/plugins/datatables/jquery.dataTables.min.js') }}"></script>
    <script src="{{ asset('/plugins/datatables/dataTables.bootstrap.min.js') }}"></script>
    <script src="{{ asset('/plugins/slimScroll/jquery.slimscroll.min.js') }}"></script>
    <script src="{{ asset('/plugins/fastclick/fastclick.js') }}"></script>
    <script src="{{ asset('/js/app.min.js') }}"></script>
    <script>
        $(function () {
            $('#play-list').DataTable({
                language: {
                    'url': '/plugins/datatables/language/zh-CN.json'
                },
                "lengthChange": false,
                "searching": false,
                "ordering": false,
                "info": true,
                "autoWidth": false,
                "processing": true,
                "serverSide": true,
                "ajax": "/admin/play/list"
            });
        });
    </script>

@endsection